//
//  SEGInviteModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/3/3.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGInviteModel.h"

@implementation SEGInviteModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _shareCode = @"";
        _bannerUrl = @"";
        _sharecontent = @"";
        _inviteurl = @"";
        _paperId = @"";
//        _qrcodepic = @"";
        _shareicon = @"";
        _sharetitle = @"";
        _rules = [NSArray array];
        _total = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setShareCode:(NSString*)shareCode{
    _shareCode = [[SEGUtils ValueToString:shareCode]copy];
}
- (void)setBannerUrl:(NSString*)bannerUrl{
    _bannerUrl = [[SEGUtils ValueToString:bannerUrl]copy];
}
- (void)setSharecontent:(NSString*)sharecontent{
    _sharecontent = [[SEGUtils ValueToString:sharecontent]copy];
}
- (void)setInviteurl:(NSString*)inviteurl{
    _inviteurl = [[SEGUtils ValueToString:inviteurl]copy];
}
- (void)setPaperId:(NSString*)paperId{
    _paperId = [[SEGUtils ValueToString:paperId]copy];
}
//- (void)setQrcodepic:(NSString*)qrcodepic{
//    _qrcodepic = [[SEGUtils ValueToString:qrcodepic]copy];
//}
- (void)setShareicon:(NSString*)shareicon{
    _shareicon = [[SEGUtils ValueToString:shareicon]copy];
}
- (void)setSharetitle:(NSString*)sharetitle{
    _sharetitle = [[SEGUtils ValueToString:sharetitle]copy];
}
//- (void)setRules:(NSString*)rules{
//    _rules = [[SEGUtils ValueToString:rules]copy];
//}
- (void)setTotal:(NSString*)total{
    _total = [[SEGUtils ValueToString:total]copy];
}
@end
